<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>交叉轴垂直方向对齐</title>
</head>
<body>
    <style>
        .x{
            display: flex;
            align-items: stretch;
            align-items: flex-start;
            align-items: flex-end;
            align-items: center;
            align-items: baseline;
            width: 500px;
            height: 500px;
            background-color: aqua;
            margin: 10px;
        }
        .x span{
            width: 100px;
            height: 100px;
            background-color: red;
            margin: 20px;
            text-align:center;
        }
    </style>
        <p class="x">
            <span>1</span>
            <span>2</span>
        </p>
</body>
</html>